package com.example.abc.dto.account;

/**
 * Created by Peter on 2018/5/3.
 * selected - if the node should be initially selected
 * opened - if the node should be initially opened
 * disabled - if the node should be disabled
 * checked - checkbox plugin specific - if the node should be checked (only used when tie_selection is false, which you should only do if you really know what you are doing)
 * undetermined - checkbox plugin specific - if the node should be rendered in undetermined state (only used with lazy loading and when the node is not yet loaded, otherwise this state is automatically calculated).
 */
public class AuthorityTreeStateDto {
    private boolean selected = false;
    private boolean opened = true;
    private boolean disabled = false;
    private boolean checked = false;
    private boolean undetermined = false;

    public boolean isSelected() {
        return selected;
    }

    public void setSelected(boolean selected) {
        this.selected = selected;
    }

    public boolean isOpened() {
        return opened;
    }

    public void setOpened(boolean opened) {
        this.opened = opened;
    }

    public boolean isDisabled() {
        return disabled;
    }

    public void setDisabled(boolean disabled) {
        this.disabled = disabled;
    }

    public boolean isChecked() {
        return checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }

    public boolean isUndetermined() {
        return undetermined;
    }

    public void setUndetermined(boolean undetermined) {
        this.undetermined = undetermined;
    }
}
